﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ClaseBase;

namespace Grupo04Playa
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {

        string tipoU;
        public MainWindow( string usuario,  string  tipo )
        {
            InitializeComponent();

            tipoU = tipo;

            if (tipo == "Admin") {

                operador.Visibility = Visibility.Hidden;
                operador.Visibility = Visibility.Collapsed;
               // playa.Visibility = Visibility.Hidden;
               //playa.Visibility = Visibility.Collapsed;
            }
            if (tipo == "Operador")
            {
                admin.Visibility = Visibility.Hidden;
                admin.Visibility = Visibility.Collapsed;
                //playa.Visibility = Visibility.Hidden;
                //playa.Visibility = Visibility.Collapsed;
            }
            if (tipo == "Gerente")
            {
                admin.Visibility = Visibility.Hidden;
                admin.Visibility = Visibility.Collapsed;
                operador.Visibility = Visibility.Hidden;
                operador.Visibility = Visibility.Collapsed;

            }

        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            WindowState = WindowState.Minimized;
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Close();
        }

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }

  

        private void MenuItem_Click_cliente(object sender, RoutedEventArgs e)
        {


            Operador.ABMCiente cliente = new Operador.ABMCiente();

            
            cliente.Show();

      }

       

        private void Menu_Click_Vehiculosplaya(object sender, RoutedEventArgs e)
        {




            VehiculosEnPlaya m = new VehiculosEnPlaya(tipoU);

            m.Show();

        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            WindowState = WindowState.Maximized;
        }

        private void TipoVehiculo(object sender, RoutedEventArgs e)
        {


            Admin.TipoVehiculo n = new Admin.TipoVehiculo();

            n.Show();
                




        }

        private void MenuItem_Click_1(object sender, RoutedEventArgs e)
        {

            login m = new login();

            m.Show();
            Window.GetWindow(this).Close();




        }



        private void tipodevehiculo(object sender, RoutedEventArgs e)
        {

            TiposDeVehiculo m = new TiposDeVehiculo();

            m.Show();


        }

        private void estadoSector(object sender, RoutedEventArgs e)
        {

           EstadoSector m = new EstadoSector();

            m.Show();


        }

        private void MenuItem_Click_BuscarUsuario(object sender, RoutedEventArgs e)
        {


            ListadoDeUsuario lis = new ListadoDeUsuario();

            lis.Show();

        }

        private void MenuItem_Click_ABUsuario(object sender, RoutedEventArgs e)
        {


            ABMusuario usu = new ABMusuario();

            usu.Show();

        }


     

       
    }
}
